﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeaderSummriseDateDialog.aspx.cs" Inherits="GH.Web.UionReport.LeaderSummriseDateDialog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <base target="_self">
    <title>历史数据选择</title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../JqueryUI/themes/ui-lightness/jquery-ui-1.7.2.custom.css" />

    <script type="text/javascript" src="../javascript/jquery-1.3.2-vsdoc2.js"></script>

    <script type="text/javascript" src="../javascript/jquery-ui-1.7.2.custom.js"></script>

    <script type="text/javascript" src="../javascript/Public.js"></script>

    <style type="text/css">
        table
        {
            font: 11px "宋体";
        }
    </style>

    <script type="text/javascript" language="javascript">

        $(document).ready(function() {
            $(".btnSelect").click(function() {
                var queryString = "";
                var FormFlg = "SelectCurrentYear"; //处理画面区分，对应不同的后台业务处理
                var Id = jQuery.trim(jQuery(this).parent().find('td:eq(1)').text());
                queryString = "FormFlg=" + FormFlg
                               + "&UpdateFlg=" + "Update"
                                + "&Id=" + Id;
                $.ajax
                        ({
                            async: false,
                            type: "post", //ajax请求方式
                            url: "../ajaxUpdate.aspx", //请求服务器地址
                            datatype: "json", //希望数据库返回的数据类型
                            data: queryString, //发送给服务器的数据
                            processData: false, //阻止数据被自动转换为url编码
                            success: function(data) {//请求成功则调用该函数
                                if (data == "OK") {
                                    window.close();
                                } else {
                                    window.close();
                                }
                            }
                        });
            });
        });
    </script>

</head>
<body>
    <form id="MainForm" runat="server">
    <table cellpadding="2" cellspacing="1" class="table">
        <tr>
            <td  valign="top" style="border-style: dashed; border-width: thin; width: 150px; height: 22px;">
                <asp:TreeView ID="trvUnion" runat="server" ImageSet="BulletedList3" ShowExpandCollapse="true"
                    ShowLines="True" OnSelectedNodeChanged="trvUnion_SelectedNodeChanged">
                    <ParentNodeStyle Font-Bold="False" />
                    <HoverNodeStyle Font-Underline="True" />
                    <RootNodeStyle ImageUrl="~/Images/closed_r.gif" />
                    <ParentNodeStyle ImageUrl="~/Images/closed_r.gif" />
                    <LeafNodeStyle ImageUrl="~/Images/closed_r.gif" />
                    <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
                        NodeSpacing="0px" VerticalPadding="0px" />
                </asp:TreeView>
            </td>
            <td valign="top" style="border-style: dashed; border-width: thin; width: 100px; height: 22px;">
                <asp:DataList ID="dlVipMember" runat="server" RepeatColumns="1" RepeatDirection="Horizontal">
                    <ItemTemplate>
                        <table style=" width:90px">
                            <tr>
                                <td  style="cursor: pointer;" align="left">
                                    <img src="../Images/datePicker.gif" height="25px" width="25px" alt="请选择日期" 
                                        border="0" />
                                </td>
                                <td class="btnSelect" style="cursor: pointer;" >
                                    <%# Eval("年份")%>年
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
                &nbsp;
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hddUnion" runat="server" />
    </form>
</body>
</html>

